<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
  $('#addWxMassUsersBtn').linkbutton({
    iconCls : 'icon-add'
  });
  $('#delWxMassUsersBtn').linkbutton({
    iconCls : 'icon-remove'
  });
  $('#addWxMassUsersBtn').bind('click', function() {
    var tr = $("#add_wxMassUsers_table_template tr").clone();
    $("#add_wxMassUsers_table").append(tr);
    resetTrNum('add_wxMassUsers_table');
    return false;
  });
  $('#delWxMassUsersBtn').bind(
      'click',
      function() {
        $("#add_wxMassUsers_table").find("input:checked").parent().parent()
            .remove();
        resetTrNum('add_wxMassUsers_table');
        return false;
      });
  $(document).ready(function() {
    $(".datagrid-toolbar").parent().css("width", "auto");
    if (location.href.indexOf("load=detail") != -1) {
      $(":input").attr("disabled", "true");
      $(".datagrid-toolbar").hide();
    }
    //将表格的表头固定
    $("#wxMassUsers_table").createhftable({
      height : '300px',
      width : 'auto',
      fixFooter : false
    });
  });
</script>
<div style="padding: 3px; height: 25px; width: auto;"
	class="datagrid-toolbar">
	<a id="addWxMassUsersBtn" href="#">添加</a> <a id="delWxMassUsersBtn"
		href="#">删除</a>
</div>
<table border="0" cellpadding="2" cellspacing="0" id="wxMassUsers_table">
	<tr bgcolor="#E6E6E6">
		<td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
		<td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
		<!-- <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						群发单标识
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						粉丝微信标识
				  </td> -->
		<td align="left" bgcolor="#EEEEEE" style="width: 126px;">粉丝名称</td>
	</tr>
	<tbody id="add_wxMassUsers_table">
		<c:if test="${fn:length(wxMassUsersList)  > 0 }">
			<c:forEach items="${wxMassUsersList}" var="poVal" varStatus="stuts">
				<tr>
					<td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
					<td align="center"><input style="width: 20px;" type="checkbox"
						name="ck" /></td>
					<input name="wxMassUsersList[${stuts.index }].id" type="hidden"
						value="${poVal.id }" />
						
					<td align="left"><input
						name="wxMassUsersList[${stuts.index }].owner" maxlength="50"
						type="hidden" class="inputxt" style="width: 120px;" datatype="*"
						value="${poVal.owner }"> <label class="Validform_label"
						style="display: none;">群发单标识</label></td>
					<td align="left"><input
						name="wxMassUsersList[${stuts.index }].fansOpenId" maxlength="100"
						type="hidden" class="inputxt" style="width: 120px;" datatype="*"
						value="${poVal.fansOpenId }"> <label
						class="Validform_label" style="display: none;">粉丝微信标识</label></td>
						
					<td align="left"><input
						name="wxMassUsersList[${stuts.index }].fansName" maxlength="100"
						type="text" class="inputxt" style="width: 120px;"
						value="${poVal.fansName }"> <label class="Validform_label"
						style="display: none;">粉丝名称</label></td>
				</tr>
			</c:forEach>
		</c:if>
	</tbody>
</table>
